//
// Task.cpp for  in /home/herpec_j/Dropbox/Projets/raytracer-2016/Sources/DesignPattern/ThreadPool/
//
// Made by Jonathan
// Login   <ledey_l@epitech.net>
//
// Started on  Fri Sep 20 13:49:37 2013 Jonathan
// Last update Fri Sep 20 14:41:19 2013 Jonathan
//

#include		"DesignPattern/ThreadPool/Task.hpp"

namespace		DesignPattern
{
  namespace		ThreadPool
  {
    Task::Task(FuncPtr rFuncPtr, void *rArg) : mFuncPtr(rFuncPtr), mArg(rArg)
    {
      return;
    }

    void		Task::Run(void) const
    {
      (*mFuncPtr)(mArg);
    }

    Task::~Task(void)
    {
      return;
    }
  };
};
